var mysql = require('mysql2');
var { dbConfig } = require('../productionConfig')

const connectionConf = {
    host: dbConfig.host,
    user: dbConfig.user,
    password: dbConfig.password,
    database: dbConfig.database
}

// 创建连接池
var pool = mysql.createPool(connectionConf);

module.exports = pool;